package com.pipodi.itasamobile.connections;

import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;

import com.pipodi.itasamobile.utils.LoginVariables;

import android.os.AsyncTask;

public class ConnectionForProfileDetails extends AsyncTask<String, String, String>{

	@Override
	protected String doInBackground(String... params) {
		Document profileDocument = Connection.connectToAPIUrl("https://api.italiansubs.net/api/rest/users/login?username=" + LoginVariables.currentUsername + "&password=" + LoginVariables.currentPassword + "&apikey=" + Constants.APIKey);
		NodeList profileNodes = profileDocument.getElementsByTagName("user");
		Node profileNode = profileNodes.item(0);
		Element profile = (Element) profileNode;
		
		return null;
	}

}
